package com.yby.dome6;

/**
 * 狗类
 */
public class Dog {
    private String name;//私有属性，姓名
    private String color;//颜色
    private String kind;//种类
    private double weight;//体重
//set进行赋值
    public void setName(String name) {
        this.name = name;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
//get进行取值
    public String getName() {
        return name;
    }

    public String getColor() {
        return color;
    }

    public String getKind() {
        return kind;
    }

    public double getWeight() {
        return weight;
    }
}
